package com.zs.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zs.entity.UserAddress;
import com.zs.service.UserService;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Service  //暴露服务
@Component
public class UserServiceImpl implements UserService {
    public List<UserAddress> getUserAddress(String userid) {
        UserAddress address1 = new UserAddress(1, "郑州市大学科技园", "2", "张三", "344232", "Y");
        UserAddress address2 = new UserAddress(2, "北京市中关村", "3", "李四", "43525", "N");

        return Arrays.asList(address1, address2);
    }
}
